a11y: Actually set accessible roles
authorMatthias Clasen <mclasen@redhat.com>
Sat, 17 Apr 2021 23:02:53 +0000 (19:02 -0400)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 19 Apr 2021 18:22:20 +0000 (19:22 +0100)
commita455db01a0e00bb14c63a554ad85bae59a39e83b
tree57337b2c6e0526046d30d3d007bc67e0a9e453c8
parent9e8187bdc4ce5a50113a448a0f0bc70bdabbea26
a11y: Actually set accessible roles

With most context realization happening inside
GtkAtspiContext in response to D-Bus calls, the
code in gtk_widget_realize_at_context that sets
the role is not executed for most accessibles,
causing them to be stuck with the 'filler' role
that makes orca ignore them.

To fix this, split gtk_widget_realize_at_context
into the actual context realization (getting on
the bus) and the setting of widget-specific
properties, and do the latter part when the
widget is rooted.

This makes accerciser report proper roles for
entries and buttons. Orca still has an issue
with getting the hierarchy populated.
gtk/gtkwidget.c